package com.alibaba.service;


import com.alibaba.bean.User;
import com.alibaba.mapper.DataMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class DataService {
    @Autowired
    DataMapper dataMapper;
    public int fansnum(int userId) {
        return dataMapper.fansnum(userId);
    }
    public int followsnum(int userId){
        return dataMapper.follownum(userId);
    }
    public User getUser(int userId){
        return dataMapper.getUser(userId);
    }
}

